<FORM method="post" action="/backend/subscribetemplates/save/" id="sp_form" onsubmit="$('sp_content').value=CKEDITOR.instances['sp_content'].getData();">
<div class="form">
    <H1>Шаблон рассылки</H1>
    <div class="operation">
    	<a href="{$fvConfig->get('dir_web_root')}subscribetemplates/" onclick="go('{$fvConfig->get('dir_web_root')}subscribetemplates/'); return false;" class="left">вернутся к списку</a>
		<div style="clear: both;"></div>
	</div>
	<div>
	    <table class="form">
			<tr>
				<td><label for="title">Заголовок</label></td>
				<td><input type="text" id="title" name="sp[title]" value="{$SubscribeTemplate->title}" /></td>
			</tr>
			<tr>
				<td><label for="content">Содержание</label></td>
				<td style="padding-left: 10px;">
					{$editor}
				</td>
			</tr>
	    </table>
	    <div class="buttonpanel">
	        <input type="submit" name="save" value="Сохранить" class="button"  onclick="$('redirect').value = '';">
	        <input type="submit" name="save_and_return" value="Сохранить и выйти" class="button" onclick="$('redirect').value = '1';">
	    </div>
	    <input type="hidden" name="id" id="id" value="{$SubscribeTemplate->getPk()}" />
	    <input type="hidden" id="redirect" name="redirect" value="" />
	</div>
	<div style="clear: both;" />
</div>
</FORM>